
import RoomEcoshpereExtension from './core/ecosphere'
import RoomMissonExtension from './misson/work' 
import TransportMissonExtension from './misson/transport'
import BaseMissonExtension from './misson/base'
import ManageMissonExtension from './misson/manage'
import PublishMissonExtension from './misson/publish'
import StructureMissonExtension from './misson/structure'
import ActionMissonExtension from './misson/action'
import WarMissonExtension from './misson/war'
import MineMissonExtension from './misson/mine'
import PowerCreepMisson from './power/action'
import DefendMissonExtension from './misson/defend'
import {assignPrototype} from '@/utils'

// 定义好挂载顺序
const plugins = [
                RoomEcoshpereExtension,
                RoomMissonExtension,
                BaseMissonExtension,
                TransportMissonExtension,
                ManageMissonExtension,
                PublishMissonExtension,
                StructureMissonExtension,
                ActionMissonExtension,
                WarMissonExtension,
                MineMissonExtension,
                PowerCreepMisson,
                DefendMissonExtension,
                ]

/**
 * 依次挂载所有的 Room 拓展
*/
export default () => plugins.forEach(plugin => assignPrototype(Room, plugin))